<form action="#" method="post" name="#" onsubmit="GridApp.AddNew(this, '{$grid_check_sum}', 'dm_closer'); return false;">
<div id="grid_container"></div>
<div id="dm_closer">
<table class="form_table">
	{foreach from=$devmod item=item key=key}
		
		<tr>
			<td valign="top" width="80">{$this_config.fields.$key}
			{if isset($this_config.text.$key)}<em>({$this_config.text.$key})</em>{/if}
			</td>
			<td>
			{if isset($this_config.cast.$key)} <!-- it's a casted field -->
			
				{$item}
			
			{elseif is_array($item)} <!-- it's an content array with value -->
			<table>
			<tr>
				{foreach from=$item item=inhalt}
					<td>{$inhalt}</td>
				{/foreach}
			</tr>
			</table>
			{else} <!-- it is just a simple text field; textarea or input -->
			
				{if $table_struct.$key == "text"}
					<textarea class="textarea" rows="10" name="{$key}"></textarea>
				{else}
					<input type="text" class="text" name="{$key}" value="" />
				{/if}
			
			{/if}
			</td>
		</tr>
	{/foreach}
	<tr>
		<td>&nbsp;</td>
		<td>
			<input type="submit" name="addGrid" value="Senden" class="submit" />
		</td>
	</tr>
</table>
</div>
</form>